package com.example.springbootlogback.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@Slf4j
public class HelloWorldController {

    @GetMapping("hello")
    @ResponseBody
    public Map<String, Object> showHelloWorld()
    {
        log.info("info日志");
        Map<String, Object> map = new HashMap<>();
        map.put("msg", "hello world");
        return map;
    }

}
